package com.lkq.gms.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName msg
 * @Description 学生信息
 * @Author dell
 * @Date 2020/6/28-22:53
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class msg implements Serializable {
    //主键id
    private Integer id;
    //姓名
    private String name;
    //年龄
    private Integer age;
    //学号
    private String studentNumber;
    //班级编号
    private Integer classId;
    //成绩编号
    private Integer gradeId;
    //性别(0,1)
    private Integer gender;
    //角色id
    private Integer roleId;

    //性别str
    private String genderStr;

    public String getGenderStr() {
        if(gender==1){
            genderStr="男";
        }
        else {
            genderStr="女";
        }
        return genderStr;
    }
}
